// 统一管理用户相关接口
import request from '@/utils/request'
import type { loginForm, loginResData, userResData } from './type'
enum API {
  LOGIN_URL = '/user/login',
  USERINFO_URL = '/user/info',
}

// 登录接口
export const reqlogin = (data: loginForm) => {
  return request.post<any, loginResData>(API.LOGIN_URL, data)
}
export const reqUserinfo = (data: any) => {
  return request.get<any, userResData>(API.USERINFO_URL, data)
}
